package com.example.aaa_viewpager.entity;

import android.content.ContentValues;

/**
 * Created by Administrator on 2014/10/30.
 */
public class UserCustom
{
    private  int id;
    private  String name;
    private  String address;
    private byte[] picture;
    private String notes;

    public UserCustom(int id , String name , String address,byte[] picture )
    {
    	super();
    	this.id = id;
        this.name = name;
        this.address = address;
        this.picture = picture;
       
    }
    public UserCustom(int id , String name , String address )
    {
    	super();
    	this.id = id;
        this.name = name;
        this.address = address; 
    }
    
	public UserCustom(String notes) {
		super();
		this.notes = notes;
	}
	public UserCustom(byte[] picture) {
		super();
		this.picture = picture;
	}
	public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
	public byte[] getPicture() {
		return picture;
	}
	public void setPicture(byte[] picture) {
		this.picture = picture;
	}
	public String getNotes() {
		return notes;
	}
	public void setNotes(String notes) {
		this.notes = notes;
	}
    public String toString()
    {
		/*return String.format("%d.%s%n"+"地址 :"+"%s%n"+"電話 :"+"%s%n"+"定價 :"+"%d%n"+"假日價 :"+"%d%n" +
	"平日價 :"+"%d",id,name,address,phone,price_1,price_2,price_3 );*/

        //return String.format("%s\n%s",name,notes );
    	return String.format("%s",notes );

    }
    public ContentValues toContentValues()
    {
        ContentValues data = new ContentValues();
        //data.put("_ID", this.id);// 這個不需要，因為database會自動建立
        data.put("NAME", this.name);
        data.put("ADDRESS", this.address);
        data.put("PICTURE", this.picture);
        return data;
    }
	



}
